﻿<!DOCTYPE html>
<html>
<head>
    <title>JS Conditional Exercise 7</title>
    <link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
    <h1>Finds the greatest of given 5 variables</h1>
    <div id="js-console"></div>
    <script src="scripts/js-console.js"></script>
    <script>
        var num1 = false;
        var num2 = 3;
        var num3 = "13";
        var num4 = true;
        var num5 = "asd";
        var greatest = num1;

        if (num2 > greatest)
        {
            greatest = num2;
        }
        if (num3 > greatest) {
            greatest = num3;
        }
        if (num4 > greatest) {
            greatest = num4;
        }
        if (num5 > greatest) {
            greatest = num5;
        }

        jsConsole.writeLine("Greatest is: " + greatest);
    </script>
</body>
</html>
